package com.vstudy.zx.service;

import com.vstudy.zx.entity.Article;
import com.vstudy.zx.entity.Grade;
import com.vstudy.zx.entity.Subject;
import com.vstudy.zx.utils.page.ArticlePage;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ArticleManageService {
    List<Article> getArticlePage(ArticlePage page, Long te_id, Integer grade_id, Long subject_id);

    List<Grade> getGrades();

    List<Subject> getSubjects();

    Article getArticleById(Long id);

    boolean updateArticle(String articleHtml, String title, Long articleId, HttpServletRequest request);

    int removeArticle(Long id, HttpServletRequest request);
}
